import request from '@/utils/request.js'

// 引入需要的 store 对象
// import store from '@/store'

// 获取用户信息
const getUserInfoApi = () => {
  return request({
    method: 'GET',
    url: '/my/userinfo'
    // headers: {
    //   Authorization: store.state.user.token
    // }
  })
}

// 获取用户菜单栏
const getMenusApi = () => {
  return request({
    method: 'GET',
    url: '/my/menus'
    // headers: {
    //   Authorization: store.state.user.token
    // }
  })
}

// 按需导出
export {
  getUserInfoApi,
  getMenusApi
}
